<template>
	<navigator :url="'../goodsInfo/goodsInfo?id='+good.goodsId" class="goods-item">
		<u-image width="100%" height="300rpx" :src="good.indexUrl"></u-image>
		<view class="title">{{good.shopName}}</view>
		<view class="u-flex u-row-between">
			<view class="price">￥{{good.price}}</view>
			<view class="sales">销量{{good.sales}}</view>
		</view>
	</navigator>
</template>

<script>
	export default {
		name: "goods-card",
		props: ['good'],
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.goods-item {
		padding: 40rpx;
		// margin-top: 30rpx;
		box-shadow: 0 12rpx 20rpx 0 rgba(0, 0, 0, .1);

		.title {
			margin: 18rpx 0;
			font-weight: 550;
			font-size: 32rpx;
		}

		.price {
			color: red;

		}

		.sales {
			color: #888;
		}

	}
</style>
